package Work319.Test2;

import java.util.Scanner;

/**
 * @author 张恒冕
 * 2019/3/19 10:22
 */
 class Hisense extends TV {
     boolean d3;
     void sfs3d(){
         System.out.println("是否为3D电视");
         Scanner sc=new Scanner(System.in);
         String sf=sc.nextLine();
         if (sf.equals("是")){
             d3=true;
         }else if(sf.equals("否")){
             d3=false;
         }
    }
    @Override
    void output(){
         if (d3==true){
             System.out.println("电视机牌子为"+getBrand()+"尺寸为"+getSize()+"是3D电视");
         }else {
             System.out.println("电视机牌子为"+getBrand()+"尺寸为"+getSize());
         }
    }
}
